<?php
/**
 * Created by PhpStorm.
 * User: liuxiaodong
 * Date: 2019/1/13
 * Time: 22:45
 */

namespace ServiceComponents\Enum;


class HostEnum
{
    const SWOFT_DEBUG = false;
    const APP_DEBUG = false;

    const RabbitmqHost = '172.25.0.2';  //ip
    const RabbitmqPortWeb = 15672;  // web端口
    const RabbitmqPortService = 5672;  //服务端口
    const RabbitmqLogin = '2workroom3';
    const RabbitmqPassword = '1357924680_';
    const RabbitmqVhost = '/';

    const RedisHost = '172.25.0.3';
    const RedisPort = 6379;
    const RedisPassword = '';

    const ApolloHost = '172.25.0.4';
    const ApolloPort = 8080;
    const ApolloAppid = 'service-gateway';
    const ApolloTimeout = 6;

    const ConsulServiceIdGateway ="service-gateway";
    const ConsulServiceNameGateway="service-gateway";
    const ConsulServiceIdUser ="service-user";
    const ConsulServiceNameUser="service-user";
    const ConsulHost = "172.25.0.10";
    const ConsulPort = 8500;
    const ConsulTimeout = 60;

    const MycatHost = '172.25.0.21';
    const MycatPort = 8066;
    const MycatDb = 'test_db';
    const MycatDbWriteUsername = "root";
    const MycatDbWritePasswrod = "password";
    const MycatDbReadUsername = "guest";
    const MycatDbReadPasswrod = "guest";

    const ElasticsearchHost = '172.25.0.26';
    const ElasticsearchPort = 9200;

    const FastdfsHost = '172.25.0.28';
    const FastdfsPort  = 22122;

    const ServiceGatewayHost = '172.25.0.51';
    const ServiceGatewayHttpPort = 8001;
    const ServiceGatewayTcpPort = 18500;
    const ServiceGatewayWsPort = 18306;

    const ServiceUserHost = '172.25.0.52';
    const ServiceUserHttpPort = 8002;
    const ServiceUserRpcPort = 8003;
    const ServiceUserWsPort = 18307;
    const ServiceUserTcpPort = 18308;

    const ServiceImHost = '172.25.0.53';
    const ServiceImHttpPort = 8004;
    const ServiceImWsPort = 8005;
}